/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvp.levelup.hashs.map;

import mvp.levelup.hashs.model.Account;
import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author WORKSPOT2
 */
public class AccountStorage
{

    private Map<String, Account> accounts;

    public AccountStorage()
    {
        this.accounts = new HashMap<String, Account>();
    }

    public void addAccount(String userName, Account acc)
    {
        accounts.put(userName, acc);
    }
    
    public Account getAccount(String userName)
    {
        return accounts.get(userName);
    }
}
